package decorator.demo1;

/**
 * 具体的装饰者-B.
 * 相当于：BuffedInputSteam
 *
 * @author GongXincheng
 * @since 2019-09-17 13:37
 */
public class ConcreteDecoratorB extends BaseDecorator {

    ConcreteDecoratorB(Component component) {
        super(component);
    }

    @Override
    public void operation() {
        System.out.println("-> ConcreteDecoratorB");
        component.operation();
    }
}
